#include "buttons.h"
#include "consts.h"

namespace buttons {
void handle_command(MsgInfo info) {
  if (info.id == IDC_BTN1) {
    if (info.event == BN_CLICKED) {
      SendMessage((HWND)info.lparam, WM_SETTEXT, 0, (LPARAM)L"按钮1被点击");
      MessageBox(info.window, L"按钮1被点击", L"提示", MB_OK);
    }
  }
}
} // namespace buttons
